chain rule arrowhead method